package com.sjksy.demo.mapper;

import com.sjksy.demo.domain.Branch;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author guyueyuan
* @description 针对表【branch】的数据库操作Mapper
* @createDate 2024-12-11 15:37:02
* @Entity com.sjksy.demo.domain.Branch
*/
@Repository
@Mapper
public interface BranchMapper extends BaseMapper<Branch> {
    /**
     * 根据id查询公司名称
     * @param branchId
     * @return
     */
    @Select("select branch_name from branch where branch_id=#{branchId}")
    String getName(Integer branchId);

}




